GtkToggleButton: Move nonexported API to a private header
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Oct 2014 02:42:49 +0000 (22:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Oct 2014 02:42:49 +0000 (22:42 -0400)
This is our standard practice nowadays.

gtk/Makefile.am
gtk/gtkradiobutton.c
gtk/gtktogglebutton.c
gtk/gtktogglebutton.h
gtk/gtktogglebuttonprivate.h [new file with mode: 0644]

index 706bb905aa8d2d62c27195d9c33344b4b8658b13..8f986091a5a9a5fd4fc11fbfec936df69301ec70 100644 (file)
@@ -669,6 +669,7 @@ gtk_private_h_sources =             \
        gtkthemingbackgroundprivate.h \
        deprecated/gtkthemingengineprivate.h \
        gtktrashmonitor.h       \
+       gtktogglebuttonprivate.h \
        gtktoolbarprivate.h     \
        gtktoolpaletteprivate.h \
        gtktreedatalist.h       \
index 9bfc83c162f2a4fd6d2f806fef8cf63d26e66163..4e98dd90a2079b6a3ab148ec41f882125f31439f 100644 (file)
@@ -27,6 +27,7 @@
 #include "gtkradiobutton.h"
 
 #include "gtkbuttonprivate.h"
+#include "gtktogglebuttonprivate.h"
 #include "gtklabel.h"
 #include "gtkmarshalers.h"
 #include "gtkprivate.h"
index d766f19ca3fd2b73d85509036d521bb15b8adb0f..a808d184c69c08d1919704805d7424a4baa87737 100644 (file)
@@ -27,6 +27,7 @@
 #include "gtktogglebutton.h"
 
 #include "gtkbuttonprivate.h"
+#include "gtktogglebuttonprivate.h"
 #include "gtklabel.h"
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
index 67a02f1d66ff72d13940e696fcb3fc3cff1bcf20..692aed3e2baead2282346ed4bb757f1a974665c7 100644 (file)
@@ -95,9 +95,6 @@ void       gtk_toggle_button_set_inconsistent  (GtkToggleButton *toggle_button,
 GDK_AVAILABLE_IN_ALL
 gboolean   gtk_toggle_button_get_inconsistent  (GtkToggleButton *toggle_button);
 
-void       _gtk_toggle_button_set_active       (GtkToggleButton *toggle_button,
-                                                gboolean         is_active);
-
 
 G_END_DECLS
 
diff --git a/gtk/gtktogglebuttonprivate.h b/gtk/gtktogglebuttonprivate.h
new file mode 100644 (file)
index 0000000..f487b54
--- /dev/null
@@ -0,0 +1,40 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
+ * file for a list of people on the GTK+ Team.  See the ChangeLog
+ * files for a list of changes.  These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_TOGGLE_BUTTON_PRIVATE_H__
+#define __GTK_TOGGLE_BUTTON_PRIVATE_H__
+
+
+#include <gtk/gtktogglebutton.h>
+
+
+G_BEGIN_DECLS
+
+void _gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
+                                    gboolean         is_active);
+
+G_END_DECLS
+
+
+#endif /* __GTK_TOGGLE_BUTTON_PRIVATE_H__ */